<?php

class Forum_Model_Post extends Engine_Model_Abstract
{
  public function __construct($post_id = null)
  {
    parent::__construct(new Forum_Model_DbTable_Posts(), $post_id);
  }


  public function save()
  {
    $this->modified_date = date("Y-m-d H:i:s");
    parent::save();
  }

  public function setUser($viewer)
  {
    return $this->user_id = $viewer->user_id;
  }

  public function getBody()
  {
    return $this->body;
  }
}

